package com.redteam.xomtro.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.redteam.xomtro.MasterActivity;
import com.redteam.xomtro.R;

public class ProfileTab_About extends PlaceTabFragment {
    private boolean isUserProfile;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View r = inflater.inflate(R.layout.fragment_profile_about, container, false);
        assert r != null;

        TextView title = (TextView) r.findViewById(R.id.title);
        TextView content = (TextView) r.findViewById(R.id.content);
        content.setTypeface(fontSLight);

        if(isUserProfile){
            title.setText("");
            content.setText("xin chào !");
        }

        return r;
    }

    public ProfileTab_About newInstance(MasterActivity mainActivity, boolean isUserProfile) {
        super.newInstance(mainActivity);
        this.isUserProfile = isUserProfile;
        return this;
    }
}
